from openai import OpenAI
from dotenv import load_dotenv
import os

load_dotenv()

client = OpenAI(api_key=os.getenv("TONGYI_API_KEY"), base_url=os.getenv("TONGYI_BASE_URL"))

models = client.models.list()
print(models.data)
for i in models.data:
    print(i.id)